<%@ page pageEncoding="utf-8"%>
<html>
  <head>
    <link rel="stylesheet" type="text/css" href="allpage.css" >
    <title>宠物诊所</title>
  </head>
  <script type="text/javascript" src="../user/table_style.js"></script>
  <script language="javascript" type="text/javascript" src="../user/DatePicker/WdatePicker.js"></script>
  <body>
  <div class="background">
  <jsp:include page="suc.jsp"></jsp:include>
  	<form method="post" action="../servlet/HistoryAddServlet">
  	<table align="center">
  		<input type="hidden" value="add" name="handle"/>
  		<input type="hidden" value="${pet.pet_id }" name="petid" />
  		<tr>
  			<td>宠物名称:</td>
  			<td>${pet.name }</td>
  		</tr>
  		<tr>
  			<td>类型:</td>
  			<td>${pet.type }</td>
  		</tr>
  		<tr>
  			<td>出生日期:</td>
  			<td>${pet.birthday }</td>
  		</tr>
  		<tr>
  			<td>所有人名称:</td>
  			<td>${pet.owner_name }</td>
  		</tr>
		<tr>
			<td>诊断日期:</td>
			<td><input type="text" name="date" onClick="WdatePicker()" /></td>
		</tr>
		<tr>
			<td>诊断结果:</td>
			<td><textarea name="description"></textarea></td>
		</tr>
		<tr>
			<td>
				<input type="submit" value="添加" />	
			</td>
			<td>
				<input type="reset" value="清空" />
			</td>
		</tr>
		<tr>
			<td colspan="2">
				<input type="button" value="返回" onclick="javascript:window.location='petinfo.jsp'"/>
			</td>
		</tr>
  	</table>
  	</form>
  	</div>
   </body>
</html>
